/**
 * 
 */
package com.study.netty.manyPeopleChat;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.CharsetUtil;

/**
 * @ClassName: NettyClientHandler
 * @Description:自定义客户端业务处理类
 * @author zhuqiang
 * @date 2018年12月27日 下午5:15:00
 */
public class ChatClientHandler extends SimpleChannelInboundHandler<String> {
	@Override
	protected void channelRead0(ChannelHandlerContext ctx, String s) throws Exception {
		System.out.println(s.trim());
	}
}